package com.tina.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author tina
 * @Time 2020/12/6 下午9:47
 * @Version 1.0
 * @Content
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class R<T> implements Serializable {

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    private int code;

    private String msg;

    private T data;
}
